//package cn.devhost;
//
//import cn.lingyangwl.framework.mq.base.domain.MqEnable;
//import cn.lingyangwl.framework.mq.base.enums.MqTypeEnum;
//import cn.lingyangwl.framework.tool.core.StringUtils;
//import lombok.extern.slf4j.Slf4j;
//import org.springframework.beans.factory.support.BeanDefinitionRegistry;
//import org.springframework.context.EnvironmentAware;
//import org.springframework.context.annotation.ImportBeanDefinitionRegistrar;
//import org.springframework.core.env.Environment;
//import org.springframework.core.type.AnnotationMetadata;
//
//import java.util.Locale;
//
///**
// * mq属性获取, 因为需要在项目启动时候就得知道配置文件中使能的是哪个mq类型
// * 好做后续处理
// *
// * @author shenguangyang
// */
//@Slf4j
//public class InitResolvRegister implements ImportBeanDefinitionRegistrar, EnvironmentAware {
//    private Environment environment;
//
//    public void registerBeanDefinitions(AnnotationMetadata importingClassMetadata, BeanDefinitionRegistry registry) {
//        try {
//            String networkInterfaces = environment.getProperty("config.networkInterfaces");
//            if (StringUtils.isNull(networkInterfaces)) {
//                return;
//            }
//        } catch (Exception e) {
//            log.error("error: ", e);
//        }
//    }
//
//    @Override
//    public void setEnvironment(Environment environment) {
//        this.environment = environment;
//    }
//}
